#切片2 【开始：结尾：步长】 取左不取右
name = "123456789"
print(name[0:6:2])   # 135
print(name[0:6:1])   # 123456
print(name[-6:-1:2])  # 468
  #步长过长只能取到首项
print(name[-6:-1:5])  # 4
  #反转字符串
print(name[::-1])   # 987654321